
function verificar(){
    var error=false;
    var texto="";
	
    d=document.datos;
    for (i= 1; i<d.numCategoria.value; i++){
        
        if((d.elements[i].value=="") || (d.elements[i+5].value=="") || 
            (d.elements[i+10].value=="") || (d.elements[i+15].value=="") ||
            (d.elements[i+20].value=="") || (d.elements[i+25].value=="")){ 
            error=true; 	
        }
        
        if((d.elements[i].value==0) || (d.elements[i+5].value==0) || 
            (d.elements[i+10].value==0) || (d.elements[i+15].value==0) ||
            (d.elements[i+20].value==0) || (d.elements[i+25].value==0)){ 
            error=true; 	
        }
            
    }

    if(!error){
        d.submit();
    }else{
        texto="Usted posee campos vacios en o ceros en la tabla\n";
        alert(texto);
    }
}
